* @param string $wordform1
* @param string $wordform2
* @param string $wordform3 (optional)
+ * @param string $wordform4 (optional)
+ * @param string $wordform5 (optional)
* @return string
*/
- function convertPlural( $count, $w1, $w2, $w3) {
+ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
return $count == '1' ? $w1 : $w2;
}
*/
class LanguageBe extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
class LanguageBs extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
# Plural form transformations, needed for some languages.
# Invoked by {{plural:count|wordform1|wordform2|wordform3}}
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace( '\xc2\xa0', '', $count );
switch ( $count ) {
case 1:
return $word;
}
- function convertPlural( $count, $wordform1, $wordform2, $wordform3, $wordform4) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $wordform4, $w5) {
switch ($count % 10) {
case 1: return $wordform1;
case 2: return $wordform2;
/**
* Use singular form for zero (see bug 7309)
*/
- function convertPlural( $count, $w1, $w2, $w3) {
+ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
return $count <= '1' ? $w1 : $w2;
}
}
* @param integer the number of items
* @param string the first form (singular)
* @param string the second form (plural)
- * @param string the third form (2 items, plural is used if not applicable and not specified)
+ * @param string the third form (2 items, plural is used if not applicable and not specified
+ * @param not used (for compatibility with ancestor)
+ * @param not used (for compatibility with ancestor)
*
* @return string of the suited form of word
*/
- public function convertPlural( $count, $w1, $w2, $w3) {
+ public function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
if ( $count == '1' ) {
return $w1;
} elseif ( $count == '2' && $w3 ) {
*/
class LanguageHr extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
}
- function convertPlural( $count, $singular, $dual, $plural, $pluralgen ) {
+ function convertPlural( $count, $singular, $dual, $plural, $pluralgen, $w5 ) {
switch ( abs( $count ) % 100 ) {
case 1:
return $singular;
/**
* Handle cases of (1, other, 0) or (1, other)
*/
- public function convertPlural( $count, $w1, $w2, $w3 ) {
+ public function convertPlural( $count, $w1, $w2, $w3, $w4, $w5 ) {
$count = str_replace (' ', '', $count);
if ( $count == '1' ) {
return $w1;
1 - vienas (1) lapas, dvidešimt vienas (21) lapas
2 - trys (3) lapai
3 - penkiolika (15) lapų
- */
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ */
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
if ($count%10==1 && $count%100!=11) return $wordform1;
if ($count%10>=2 && ($count%100<10 || $count%100>=20)) return $wordform2;
//if third form not specified, then use second form
* @param string $wordform3 (not used)
* @return string
*/
- function convertPlural( $count, $wordform1, $wordform2, $wordform3 ) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5 ) {
return ( ( $count % 10 == 1 ) && ( $count % 100 != 11 ) ) ? $wordform1 : $wordform2;
}
/**
* Use singular form for zero (see bug 7309)
*/
- function convertPlural( $count, $w1, $w2, $w3) {
+ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
return $count <= '1' ? $w1 : $w2;
}
}
return $word;
}
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace (' ', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
}
return $word;
}
-
- function convertPlural( $count, $w1, $w2, $w3) {
+
+ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
$count = str_replace ('.', '', $count);
$forms = array( $w1, $w2, $w3);
if ( $count == 1 ) {
#--------------------------------------------------------------------------
class LanguageSr_ec extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;
#--------------------------------------------------------------------------
class LanguageSr_el extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
+ function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
$count = str_replace ('.', '', $count);
if ($count > 10 && floor(($count % 100) / 10) == 1) {
return $wordform3;